package com.example.shop.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by Administrator on 2016/3/15.
 */
public class MesureListView extends ListView {
    public MesureListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MesureListView(Context context) {
        super(context);
    }
    @Override
    public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, expandSpec);
    }

}
